Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PreambleAppender#appendColumns : prevent systematic table:table-column=1024 #250

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rguihard
Copy link

When an ODS contains only one or few columns, it is not desirable to export the constant MAX_COLUMN_COUNT=1024 as attribute number-columns-repeated.
ODS readers (like SODS) will consider a generated file with 2 columns contains "rows * 1024" cells wheras it contains only "rows * 2" cells.

The TableModel#columnCapacity knows the initial columnCapacity. Using this value is more accurate.

Rguihard added 2 commits June 14, 2024 09:03
Use TableModel#columnCapacity instead of MAX_COLUMN_COUNT in
appendXMLToTable.
When an ODS contains only one or few columns, it is not desirable to
export the constant MAX_COLUMN_COUNT=1024 as attribute
number-columns-repeated.
On the other hand, the TableModel#columnCapacity knows the initial
columnCapacity.
columnCapacity must be used even in the case where column headers are
specified
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant